package com.orchard.orchardfarmmanagementsystem.dto;

import com.orchard.orchardfarmmanagementsystem.entity.MaintenanceRecords;
import com.sun.istack.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SuppliesDTO {

    @NotNull()
    private Long id; // 更新时需要提供ID
    private String name;
    private String category;
    private String type;
    private String unit;
    private Integer currentQuantity;
    private Boolean isMaintainable;
    private LocalDateTime nextMaintenanceDate;
    private String description;
    private List<MaintenanceRecords> maintenanceRecords;
}
